package admin.common.domain.req;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;
import lombok.experimental.SuperBuilder;

import java.io.Serializable;

/**
 * @author zgb
 * @date 2024-03-26 17:04
 * @description TODO
 */

@Schema(description = "Oauth2登录 参数对象")
@Data
@SuperBuilder
@NoArgsConstructor
@AllArgsConstructor
@Accessors(chain = true)
public class Oauth2LoginReq implements Serializable {

    private static final long serialVersionUID = -1242493306307174690L;


    @Schema(description = "授权模式")
    private String grant_type;


    @Schema(description = "Oauth2客户端ID")
    private String client_id;

    @Schema(description = "Oauth2客户端秘钥")
    private String client_secret;

    @Schema(description = "刷新token")
    private String refresh_token;

    @Schema(description = "登录用户名")
    private String username;

    @Schema(description = "登录密码")
    private String password;


    @Schema(description = "登录密码是否加密")
    private Boolean passwordEncodeYn;


}
